#ifndef PAGE_MANAGER_H
#define PAGE_MANAGER_H

#include <Arduino.h>

// 定义页面类型
#define PAGE_TYPE_BUSINESS_CLOCK 1
#define PAGE_TYPE_STUDENT 2
#define PAGE_TYPE_COUPLE 3
#define PAGE_TYPE_CUSTOM 4

// 定义页面结构体
struct Page {
    int type;
    bool isTemporary;
    unsigned long displayDuration;
    unsigned long startTime;
};

extern Page currentPage;

void initPageManager();
void handleCommunication();
void checkTemporaryPage();
void displayPage(int pageType);

#endif    